import service from '@/util/request'

// 用户登录
export function login(username, password, captcha) {
    return service({
        url: '/user/login?username=' + username + "&password=" + password + "&captcha=" + captcha,
        method: 'get',
    })
}

// 获取用户信息
export function getInfo(id) {
    return service({
        url: '/user/getInfo/' + id,
        method: 'get'
    })
}

// 修改用户信息
export function reset(data) {
    return service({
        url: '/user/reset',
        method: 'post',
        data
    })
}